package cn.buk.tms.eotms.service;


import cn.buk.common.JsonResult;
import cn.buk.common.sc.CommonSearchCriteria;
import cn.buk.tms.eotms.dto.AccessTokenDto;
import cn.buk.tms.eotms.dto.PassengerDto;
import cn.buk.tms.eotms.entity.CustomerDepartment;
import cn.buk.tms.eotms.sc.SearchFlightOrderCriteria;

import java.util.List;

/**
 * @author yfdai
 */
public interface EnterpriseService {

  List<PassengerDto>  searchPassengers(int userId, SearchFlightOrderCriteria sc);

  List<CustomerDepartment> searchDepartments(int userId, CommonSearchCriteria sc);

  JsonResult createOrUpdateDepartment(int userId, CustomerDepartment dto);

  PassengerDto getPassengerInfo(int userId, int id);

  /**
   * 获取访问令牌
   */
  AccessTokenDto getAccessToken(String grantType, String appId, String appSecret);

  boolean validateAccessToken(String accessToken);

}
